package com.secxiot.provider.communication.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 
 * ClassName: CommunicationVo <br/>
 * Function: 主题实体. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2020年3月13日 下午5:15:30 <br/>
 *
 * @author tyra
 * @version
 * @since
 */
@ApiModel
@Data // lombok，无须再添加get/set方法
@ToString
public class CommunicationVo implements Serializable {

	private static final long serialVersionUID = -7310157846220994876L;

	@ApiModelProperty(value = "主题id", required = true)
	private Long communicationId;

	@ApiModelProperty(value = "主题标题", required = true)
	private String title;

	@ApiModelProperty(value = "主题发起人id", required = true)
	private Long creatorId;

	@ApiModelProperty(value = "发起人姓名", required = true)
	private String creatorName;

	@ApiModelProperty(value = "发起人头像", required = true)
	private String creatorHeaderImg;

	@ApiModelProperty(value = "【主题对话】未读数量", required = true)
	private Integer unreadFlag;

	@ApiModelProperty(value = "主题发起时间", required = true)
	private Date createTime;
	
	@ApiModelProperty(value = "最新对话时间", required = true)
	private Date newCommunicationTime;

	@ApiModelProperty(value = "主题读取状态0-未读  1-已读", required = true)
	private Integer readFlag;

	@ApiModelProperty(value = "主题附件")
	private List<CommunicationAttachVo> attachments;

}
